// The capturing piece goes to the hand and have to enter again, because nothing is specified for capturing pieces which have to go back to the starting point if opponent pieces are already there. (define "SiteToMoveOnTrack" ("NextSiteOnTrack" (pips))) (define "RemoveAPiece" (move Remove (from))) //------------------------------------------------------------------------------ (game "Medio Emperador" (players 2) (equipment { ("TableBoard" "TableTracksOppositeWithHands") (dice d:6 num:) (hand Each) (piece "Disc" Each (forEach Die if:("DieNotUsed") (if ("IsOffBoard" "SiteToMoveOnTrack") "RemoveAPiece" (if ("NoEnemyOrOnlyOne" "SiteToMoveOnTrack") (move (from) (to "SiteToMoveOnTrack" ("HittingCapture" (handSite Next)) ) ) ) ) ) ) }) (rules (start { (place Stack "Disc1" 0 count:15) (place Stack "Disc2" 12 count:15) }) (play ("RollEachNewTurnMove" (or (forEach Piece top:True) (forEach Piece container:(mover) top:True) (then ("ReplayNotAllDiceUsed")) ) ) ) (end { ("EscapeWin") (if (and (no Moves P1) (no Moves P2)) (result Mover Draw)) }) ) ) //------------------------------------------------------------------------------ (option "Dice" args:{ } { (item "2" <2> "The game involves 2 dice")* (item "3" <3> "The game involves 3 dice") } ) //------------------------------------------------------------------------------ (rulesets { (ruleset "Ruleset/Medio Emperador (Described)" { "Dice/3" } variations:{"Dice/2"} )* }) //------------------------------------------------------------------------------ (metadata (info { (description "Medio Emperador is a race game from medieval Spain that is related to other European Tables games. It is very similar to Emperador, using only half of the board and without a prime win.") (rules "2x12 board, divided in half. Spaces on each side take the form of semi-circular sockets, into which the pieces fit. Fifteen pieces per player. Two or three six-sided dice. Players move according to the number on each die by moving one piece the value on one die then another piece the value on the other die, or by moving one piece the value of one die and then the value of the other. One player begins with all of their pieces on the space furthest to the left on their side, the other with their pieces on the point directly opposite it. Pieces move in opposite directions around the board, only on the half of the board where the pieces begin, toward the point where the opponent's pieces begin, and bearing off the board from there. When a piece lands on the same space as an opponent's piece, the opponent's piece is sent back to where it began. The first person to bear off all their pieces wins. If players move their pieces such that they fill up all the points in a quadrant, and the other fills up all of the points in an adjacent quadrant such that neither player can move, the game is a draw. ") (source "Libro de los Juegos 75-76.") (id "730") (version "1.3.12") (classification "board/race/escape") (credit "Eric Piette") (origin "This game was played in Spain, around 1283.") } ) (graphics { (show Edges Hidden) (board Style Table) (stackType 0 Backgammon) (stackType 1 Count) (stackType 2 Count) }) )